{{--兼职默认模板页--}}
@extends('default.layouts.part_time_managePublic')
@section('title', '企业兼职管理中心')
{{--兼职中心页css--}}
@section('headcss')
    <meta name="keywords" content="{{Site::get('homekeywords')}}">
    <meta name="description" content="{{Site::get('homedescription')}}">
    @parent
    <link rel="stylesheet" type="text/css" href="{{asset('/default/css/company/welcome.css')}}">
    <link rel="stylesheet" href="{{asset('/default/css/part_time/manageIndex.css')}}">
@endsection

{{--主体内容--}}
@section('content')
    {{--兼职中心--}}
    <div class="main">
        <div class="wrapper">
            <div class="asideNav">
                <ul>
                    @include('default.layouts.part_time_public_left')
                </ul>
            </div>
            {{--基本信息--}}
            <div class="baseInfo">
                <div class="topLeft">
                    {{--处理率--}}
                    <div class="processingRate">
                        <span class="percent">{{$percentageProcessed}}%</span>
                        <span>最近十天报名处理率</span>
                    </div>
                    {{--刷新--}}
                    <a href="{{url('company/pt_refresh_all')}}" class="refresh">
                        <i></i><span>刷新兼职</span>
                    </a>
                    {{--新增--}}
                    <a href="{{url('company/pt_create')}}" class="newJob">
                        <i></i><span>新增兼职</span>
                    </a>
                </div>
                <div class="topRight">
                    <div class="avatar"><img src="{{ $CrmService->img  }}" alt="" width="124" height="142"></div>
                    <ul class="info">
                        <li class="name"><strong>您的客服 {{ $CrmService->worker_name }}</strong></li>
                        <li class="tel"><i></i><span>{{ substr($CrmService->mobile,0,11) }}</span></li>
                        <li class="qq"><i></i><span>{{ substr($CrmService->qq,0,12) }}</span></li>
                        <li class="weixin"><i></i><span id="wx">{{ str_limit($CrmService->weichat,18) }}</span></li>
                        <li class="signature" id="serviceText">{{ empty($CrmService->enounce) ? '您的满意是我不懈的追求！' : str_limit($CrmService->enounce,22) }}</li>
                    </ul>
                </div>
                <div class="processShow"><img src="{{asset('/default/images/part_time/zplc.png')}}" alt="兼职管理中心流程展示图"></div>
            </div>
            {{--基本信息结束--}}
        </div>
    </div>
    {{--兼职中心结束--}}
@endsection
{{--兼职中心页js--}}
@section('footerjs')
    @parent
    <script type="text/javascript" src="{{asset('/default/js/part_time/pt_manage.js')}}"></script>
    <script>
        $(function () {
            //消息检测
            layer.ready(function(){
                if ('{{ Session::has('msg')}}') {
                    layer.msg('{{ Session::get('msg')}}');
                }
            });
            //侧边导航栏点击事件
            $('.main .wrapper .asideNav ul').on('click.asideNav', 'li', function () {
                var url = $(this).attr('data-href');
                window.location.href = url;
            });
            //微信
            $("#wx").mouseover(function(){
                var wxTip = layer.tips('{{ $CrmService->weichat }}', '#wx', {tips: 3});
                $("#wx").mouseout(function(){
                    layer.close(wxTip);
                });
            });
            //客服个人宣言提醒
            $("#serviceText").mouseover(function(){
                var serviceTextTip = layer.tips('{{ $CrmService->enounce }}', '#serviceText', {tips: 3});
                $("#serviceText").mouseout(function(){
                    layer.close(serviceTextTip);
                });
            });
        });
    </script>
@endsection